#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << "按钮1槽函数执行！";
}

void Widget::on_pushButton_2_clicked()
{
    qDebug() << "切换按钮槽函数执行！";

    bool ret = ui->pushButton->isEnabled();
    ui->pushButton->setEnabled(!ret);
}
